import { Component, OnInit } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import * as $ from "jquery";

@Component({
  selector: "app-common",
  templateUrl: "./common.component.html",
  styleUrls: ["./common.component.css"],
})
export class CommonComponent implements OnInit {
  constructor(private route: ActivatedRoute) {}

  item1: boolean = true;
  item2: boolean = false;
  item3: boolean = false;
  item4: boolean = false;
  item5: boolean = false;

  ngOnInit(): void {
    $(".list-group-item").on("click", function () {
      //this.container.clear();
      $(".list-group-item").removeClass("active");
      $(this).addClass("active");
    });
  }
}
